home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / devel / wild / include / inline / wildengineer.h < prev    next >
C/C++ Source or Header  |  1999-01-01  |  2KB  |  74 lines

  1. #ifndef _INLINE_WILDENGINEER_H
  2. #define _INLINE_WILDENGINEER_H
  3.  
  4. #ifndef __INLINE_MACROS_H
  5. #include <inline/macros.h>
  6. #endif
  7.  
  8. #ifndef WILDENGINEER_BASE_NAME
  9. #define WILDENGINEER_BASE_NAME WEBase
  10. #endif
  11.  
  12. #define weHaveModuleInfo(tags) \
  13.     LP1(0x1E, struct WEModuleInfo    *, weHaveModuleInfo, struct TagItem *, tags, a0, \
  14.     , WILDENGINEER_BASE_NAME)
  15.  
  16. #ifndef NO_INLINE_STDARG
  17. #define weHaveModuleInfoTags(tags...) \
  18.     ({ULONG _tags[] = {tags}; weHaveModuleInfo((struct TagItem *) _tags);})
  19. #endif
  20.  
  21. #define weFreeModuleInfo(moduleinfo) \
  22.     LP1NR(0x24, weFreeModuleInfo, struct WEModuleInfo *, moduleinfo, a0, \
  23.     , WILDENGINEER_BASE_NAME)
  24.  
  25. #define weHaveBestModules(tags) \
  26.     LP1(0x2A, struct WEBestModules    *, weHaveBestModules, struct TagItem *, tags, a0, \
  27.     , WILDENGINEER_BASE_NAME)
  28.  
  29. #ifndef NO_INLINE_STDARG
  30. #define weHaveBestModulesTags(tags...) \
  31.     ({ULONG _tags[] = {tags}; weHaveBestModules((struct TagItem *) _tags);})
  32. #endif
  33.  
  34. #define weFreeBestModules(bestmodules) \
  35.     LP1NR(0x30, weFreeBestModules, struct WEBestModules *, bestmodules, a0, \
  36.     , WILDENGINEER_BASE_NAME)
  37.  
  38. #define weHaveEngineCheck(tags) \
  39.     LP1(0x36, struct WEEngineCheck    *, weHaveEngineCheck, struct TagItem *, tags, a0, \
  40.     , WILDENGINEER_BASE_NAME)
  41.  
  42. #ifndef NO_INLINE_STDARG
  43. #define weHaveEngineCheckTags(tags...) \
  44.     ({ULONG _tags[] = {tags}; weHaveEngineCheck((struct TagItem *) _tags);})
  45. #endif
  46.  
  47. #define weFreeEngineCheck(enginecheck) \
  48.     LP1NR(0x3C, weFreeEngineCheck, struct WEEngineCheck *, enginecheck, a0, \
  49.     , WILDENGINEER_BASE_NAME)
  50.  
  51. #define weRepairEngine(tags) \
  52.     LP1NR(0x42, weRepairEngine, struct WEBestModules *, tags, a0, \
  53.     , WILDENGINEER_BASE_NAME)
  54.  
  55. #ifndef NO_INLINE_STDARG
  56. #define weRepairEngineTags(tags...) \
  57.     ({ULONG _tags[] = {tags}; weRepairEngine((struct WEBestModules *) _tags);})
  58. #endif
  59.  
  60. #define weLoadModule(tags) \
  61.     LP1(0x48, struct WildModule    *, weLoadModule, struct TagItem *, tags, a0, \
  62.     , WILDENGINEER_BASE_NAME)
  63.  
  64. #ifndef NO_INLINE_STDARG
  65. #define weLoadModuleTags(tags...) \
  66.     ({ULONG _tags[] = {tags}; weLoadModule((struct TagItem *) _tags);})
  67. #endif
  68.  
  69. #define weKillModule(module) \
  70.     LP1NR(0x4E, weKillModule, struct WildModule *, module, a0, \
  71.     , WILDENGINEER_BASE_NAME)
  72.  
  73. #endif /*  _INLINE_WILDENGINEER_H  */
  74.